#distanceLegendDiv {
  position: absolute;
  right: 50px;
  top: 0;
}